﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Controls="clr-namespace:LaserTag.Common.Controls"
                    xmlns:Interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
                    xmlns:Behaviors="clr-namespace:LaserTag.Common.Behaviors" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <Style x:Key="{x:Type Controls:TargetReticle}"
           TargetType="{x:Type Controls:TargetReticle}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:TargetReticle}">
                    <Canvas x:Name="PART_ReticleTargetArea">
                        <Ellipse x:Name="PART_Reticle"
                                 Fill="#55FF0000"
                                 Stroke="White"
                                 StrokeThickness="2"
                                 Width="25"
                                 Height="25" />
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="{x:Type Controls:AreaSelection}"
           TargetType="{x:Type Controls:AreaSelection}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:AreaSelection}">
                   
                    <Canvas x:Name="PART_SelectionArea" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Margin="{TemplateBinding Margin}">
                        <Rectangle x:Name="PART_SelectionVisual"
                                 Fill="#44000000"
                                 Stroke="White"
                                 StrokeThickness="2"
                                 Width="100"
                                 Height="100" />
                        </Canvas>
                        
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DrawingBrush x:Key="CheckerBrush"
                  Viewport="0,0,10,10"
                  ViewportUnits="Absolute"
                  TileMode="Tile">
        <DrawingBrush.Drawing>
            <DrawingGroup>
                <GeometryDrawing Brush="White">
                    <GeometryDrawing.Geometry>
                        <RectangleGeometry Rect="0,0 100,100" />
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Brush="LightGray">
                    <GeometryDrawing.Geometry>
                        <GeometryGroup>
                            <RectangleGeometry Rect="0,0 50,50" />
                            <RectangleGeometry Rect="50,50 50,50" />
                        </GeometryGroup>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
            </DrawingGroup>
        </DrawingBrush.Drawing>
    </DrawingBrush>
    <LinearGradientBrush x:Key="GlassBrush"
                         StartPoint="0,0"
                         EndPoint="1,1"
                         Opacity="0.75">
    	<GradientStop Color="WhiteSmoke"
    		Offset="0.2" />
    	<GradientStop Color="Transparent"
    		Offset="0.4" />
    	<GradientStop Color="WhiteSmoke"
    		Offset="0.5" />
    	<GradientStop Color="Transparent"
    		Offset="0.75" />
    	<GradientStop Color="WhiteSmoke"
    		Offset="0.9" />
    	<GradientStop Color="Transparent"
    		Offset="1" />
    </LinearGradientBrush>
    <GeometryGroup x:Key="FancyColorMarkerGeometry">
        <EllipseGeometry RadiusX="8"
                         RadiusY="8" />
        <EllipseGeometry RadiusX="4"
                         RadiusY="4" />
    </GeometryGroup>
   
    <Style x:Key="{x:Type Controls:ColorThumb}"
           TargetType="{x:Type Controls:ColorThumb}">
        <Setter Property="PointerOutlineBrush"
                Value="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" />
        <Setter Property="PointerOutlineThickness"
                Value="2" />
        <Setter Property="Foreground"
                Value="{x:Null}" />
        <Setter Property="ThumbColor"
                Value="Transparent" />
        <Setter Property="Background"
                Value="Transparent" />
        <Setter Property="Height"
                Value="5" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:ColorThumb}">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Polygon x:Name="arrow"
                                     Points="100,20 80,50 100,80"
                                     Stretch="Fill"
                                     Stroke="{TemplateBinding PointerOutlineBrush}"
                                     StrokeThickness="{TemplateBinding PointerOutlineThickness}">
                                <Polygon.Fill>
                                    <SolidColorBrush Color="{Binding ThumbColor, RelativeSource={RelativeSource TemplatedParent}}" />
                                </Polygon.Fill>
                            </Polygon>
                            <Polygon x:Name="glassArrow"
                                     Points="100,20 80,50 100,80"
                                     Stretch="Fill"
                                     Stroke="{TemplateBinding PointerOutlineBrush}"
                                     StrokeThickness="{TemplateBinding PointerOutlineThickness}"
                                     Fill="{StaticResource GlassBrush}"/>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsDragging"
                                 Value="False">
                            <Setter Property="BitmapEffect"
                                    TargetName="glassArrow">
                                <Setter.Value>
                                    <BitmapEffectGroup>
                                        <BevelBitmapEffect BevelWidth="5"
                                                           Relief="0.5" />
                                        <DropShadowBitmapEffect />
                                    </BitmapEffectGroup>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="False">
                            <Setter Property="Foreground"
                                    Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

	<SolidColorBrush x:Key="TabControlNormalBorderBrush" Color="#8C8E94"/>
    <Style TargetType="{x:Type Controls:AnimatedTabControl}">
        <Setter Property="Foreground"
                Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
        <Setter Property="Padding"
                Value="4,4,4,4" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="BorderBrush"
                Value="{StaticResource TabControlNormalBorderBrush}" />
        <Setter Property="Background"
                Value="#F9F9F9" />
        <Setter Property="HorizontalContentAlignment"
                Value="Stretch" />
        <Setter Property="VerticalContentAlignment"
                Value="Stretch" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:AnimatedTabControl}">
                    <Grid ClipToBounds="true"
                          SnapsToDevicePixels="true"
                          KeyboardNavigation.TabNavigation="Local">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Border Height="30"
                                Margin="10,0,10,10"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Top"
                                Width="Auto"
                                Grid.Row="1"
                                CornerRadius="12,12,12,12"
                                Background="#00000000"
                                BorderThickness="0"
                                BorderBrush="#FFFFFFFF">
                            <TabPanel x:Name="HeaderPanel"
                                      HorizontalAlignment="Center"
                                      VerticalAlignment="Center"
                                      IsItemsHost="true"
                                      Grid.Column="0"
                                      Grid.Row="0"
                                      KeyboardNavigation.TabIndex="1" />
                        </Border>
                        <Grid Grid.Row="1"
                              Margin="0,40,0,0"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch">
                            <Viewport3D x:Name="vp3D"
                                        Visibility="Hidden"
                                        Width="Auto"
                                        Height="Auto">
                                <Viewport3D.Camera>
                                    <PerspectiveCamera x:Name="camera"
                                                       Position="0,0,0.5"
                                                       LookDirection="0,0,-1"
                                                       FieldOfView="90" />
                                </Viewport3D.Camera>
                            	<ModelVisual3D>
                            		<ModelVisual3D.Content>
                            			<Model3DGroup>
                            				<DirectionalLight Color="#444"
                            					Direction="0,0,-1" />
                            				<AmbientLight Color="#BBB" />
                            			</Model3DGroup>
                            		</ModelVisual3D.Content>
                            	</ModelVisual3D>
                            	<ModelVisual3D>
                            		<ModelVisual3D.Content>
                            			<GeometryModel3D>
                            				<GeometryModel3D.Geometry>
                            					<MeshGeometry3D  TriangleIndices="0,1,2 2,3,0"
                            						TextureCoordinates="0,1 1,1 1,0 0,0"
                            						Positions="-0.5,-0.5,0 0.5,-0.5,0 0.5,0.5,0 -0.5,0.5,0" />
                            				</GeometryModel3D.Geometry>
                            				<GeometryModel3D.Material>
                            					<DiffuseMaterial>
                            						<DiffuseMaterial.Brush>
                            							<VisualBrush Visual="{Binding ElementName=BorderIn}"
                            								Stretch="Uniform" />
                            						</DiffuseMaterial.Brush>
                            					</DiffuseMaterial>
                            				</GeometryModel3D.Material>
                            				<GeometryModel3D.BackMaterial>
                            					<DiffuseMaterial>
                            						<DiffuseMaterial.Brush>
                            							<VisualBrush Visual="{Binding ElementName=BorderIn}"
                            								Stretch="Uniform">
                            								<VisualBrush.RelativeTransform>
                            									<ScaleTransform ScaleX="-1"
                            										CenterX="0.5" />
                            								</VisualBrush.RelativeTransform>
                            							</VisualBrush>
                            						</DiffuseMaterial.Brush>
                            					</DiffuseMaterial>
                            				</GeometryModel3D.BackMaterial>
                            				<GeometryModel3D.Transform>
                            					<RotateTransform3D>
                            						<RotateTransform3D.Rotation>
                            							<AxisAngleRotation3D x:Name="rotate"
                            								Axis="0,3,0"
                            								Angle="0" />
                            						</RotateTransform3D.Rotation>
                            					</RotateTransform3D>
                            				</GeometryModel3D.Transform>
                            			</GeometryModel3D>
                            		</ModelVisual3D.Content>
                            	</ModelVisual3D>
                            </Viewport3D>
                            <Border x:Name="BorderOut"
                                    VerticalAlignment="Stretch">
                                <Border x:Name="BorderIn"
                                        VerticalAlignment="Stretch"
                                        Background="#00000000">
                                    <Grid>
                                        
                                        <ContentPresenter x:Name="PART_SelectedContentHost"
                                                          ContentSource="SelectedContent"
                                                          Margin="20" />
                                    </Grid>
                                </Border>
                            </Border>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <EventTrigger RoutedEvent="Controls:AnimatedTabControl.SelectionChanging">
                            <BeginStoryboard>
                                <Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetName="vp3D"
                                                                   Storyboard.TargetProperty="Visibility">
                                        <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                                                Value="{x:Static Visibility.Visible}" />
                                        <DiscreteObjectKeyFrame KeyTime="0:0:1.1"
                                                                Value="{x:Static Visibility.Hidden}" />
                                    </ObjectAnimationUsingKeyFrames>
                                    <DoubleAnimation To="0"
                                                     Duration="0:0:0.05"
                                                     Storyboard.TargetName="BorderOut"
                                                     Storyboard.TargetProperty="Opacity" />
                                    <DoubleAnimation BeginTime="0:0:1.05"
                                                     Duration="0:0:0.05"
                                                     To="1"
                                                     Storyboard.TargetName="BorderOut"
                                                     Storyboard.TargetProperty="Opacity" />
                                    <Point3DAnimation To="0,0,1.1"
                                                      From="0,0,0.5"
                                                      BeginTime="0:0:0.05"
                                                      Duration="0:0:0.5"
                                                      AutoReverse="True"
                                                      DecelerationRatio="0.3"
                                                      Storyboard.TargetName="camera"
                                                      Storyboard.TargetProperty="(ProjectionCamera.Position)" />
                                    <DoubleAnimation From="0"
                                                     To="180"
                                                     AccelerationRatio="0.3"
                                                     DecelerationRatio="0.3"
                                                     BeginTime="0:0:0.05"
                                                     Duration="0:0:1"
                                                     Storyboard.TargetName="rotate"
                                                     Storyboard.TargetProperty="Angle" />
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <LinearGradientBrush x:Key="HorizontalSliderThumbHoverBackgroundInverted"
                         EndPoint="0,0"
                         StartPoint="0,1">
        <GradientStop Color="white"
                      Offset="0" />
        <GradientStop Color="#B8E2F9"
                      Offset="0.5" />
        <GradientStop Color="#B0DFF8"
                      Offset="1" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="HorizontalSliderThumbHoverBorder"
                     Color="#3C7FB1" />
    <LinearGradientBrush x:Key="HorizontalSliderThumbPressedBackgroundInverted"
                         EndPoint="0,0"
                         StartPoint="0,1">
        <GradientStop Color="#B8E4FA"
                      Offset="0.25" />
        <GradientStop Color="#5EB4E3"
                      Offset="0.5" />
        <GradientStop Color="#4C8BB4"
                      Offset="1" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="HorizontalSliderThumbPressedBorder"
                     Color="#2C628B" />
    <Geometry x:Key="SliderThumbDisabledGeometry">M -5,-10.5 L 5,-10.5 L 5,10.5 L -5,10.5 Z</Geometry>
    <Geometry x:Key="SliderPointedThumbDisabledGeometry">M 4.5,-8.5 L -4.5,-8.5 L -4.5,4.5 L -0.5,8.5 L 0.5,8.5 L 4.5,4.5 Z</Geometry>
    <LinearGradientBrush x:Key="HorizontalSliderThumbNormalBackgroundInverted"
                         EndPoint="0,0"
                         StartPoint="0,1">
        <GradientStop Color="White"
                      Offset="0" />
        <GradientStop Color="#F0EFEF"
                      Offset="0.4" />
        <GradientStop Color="#D6D5D5"
                      Offset=".8" />
    </LinearGradientBrush>
    <Geometry x:Key="SliderPointedThumbOuterBorderGeometry">M 4.5,-7.5 A 1 1 0 0 0 3.5,-8.5 L -3.5,-8.5 A 1 1 0 0 0 -4.5,-7.5 L -4.5,4.5 L -0.5,8.5 L 0.5,8.5 L 4.5,4.5 Z</Geometry>
    <Geometry x:Key="SliderPointedThumbMiddleBorderGeometry">M 3.5,-7.5 L -3.5,-7.5 L -3.5,4.5 L 0,8 L 3.5,4.5 Z</Geometry>
    <Style x:Key="HorizontalSliderUpThumbStyle"
           TargetType="{x:Type Thumb}">
        <Setter Property="Focusable"
                Value="false" />
        <Setter Property="OverridesDefaultStyle"
                Value="true" />
        <Setter Property="Height"
                Value="18" />
        <Setter Property="Width"
                Value="10" />
        <Setter Property="Foreground"
                Value="Gray" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Canvas SnapsToDevicePixels="true">
                        <Canvas.RenderTransform>
                            <TransformGroup>
                                <TransformGroup.Children>
                                    <TransformCollection>
                                        <RotateTransform Angle="180" />
                                        <TranslateTransform X="5"
                                                            Y="9" />
                                    </TransformCollection>
                                </TransformGroup.Children>
                            </TransformGroup>
                        </Canvas.RenderTransform>
                        <Path x:Name="Background"
                              Fill="{StaticResource HorizontalSliderThumbNormalBackgroundInverted}"
                              Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" />
                        <Path x:Name="InnerBorder"
                              Stroke="White"
                              StrokeThickness="1"
                              Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}" />
                        <Path x:Name="OuterBorder"
                              Stroke="#FF929292"
                              StrokeThickness="1"
                              Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" />
                    </Canvas>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver"
                                 Value="true">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource HorizontalSliderThumbHoverBackgroundInverted}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbHoverBorder}" />
                        </Trigger>
                        <Trigger Property="Foreground"
                                 Value="Blue">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource HorizontalSliderThumbHoverBackgroundInverted}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbHoverBorder}" />
                        </Trigger>
                        <Trigger Property="IsDragging"
                                 Value="true">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource HorizontalSliderThumbPressedBackgroundInverted}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbPressedBorder}" />
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="false">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="#FFF4F4F4" />
                            <Setter Property="Stroke"
                                    TargetName="InnerBorder"
                                    Value="{x:Null}" />
                            <Setter Property="Data"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource SliderThumbDisabledGeometry}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="#FFAEB1AF" />
                            <Setter Property="Data"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource SliderPointedThumbDisabledGeometry}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <LinearGradientBrush x:Key="HorizontalSliderThumbHoverBackground"
                         EndPoint="0,1"
                         StartPoint="0,0">
        <GradientStop Color="white"
                      Offset="0" />
        <GradientStop Color="#B8E2F9"
                      Offset="0.5" />
        <GradientStop Color="#B0DFF8"
                      Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="HorizontalSliderThumbPressedBackground"
                         EndPoint="0,1"
                         StartPoint="0,0">
        <GradientStop Color="#B8E4FA"
                      Offset="0.25" />
        <GradientStop Color="#5EB4E3"
                      Offset="0.5" />
        <GradientStop Color="#4C8BB4"
                      Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="HorizontalSliderThumbNormalBackground"
                         EndPoint="0,1"
                         StartPoint="0,0">
        <GradientStop Color="White"
                      Offset="0" />
        <GradientStop Color="#F0EFEF"
                      Offset="0.4" />
        <GradientStop Color="#D6D5D5"
                      Offset=".8" />
    </LinearGradientBrush>
    <Style x:Key="HorizontalSliderDownThumbStyle"
           TargetType="{x:Type Thumb}">
        <Setter Property="Focusable"
                Value="false" />
        <Setter Property="OverridesDefaultStyle"
                Value="true" />
        <Setter Property="Height"
                Value="18" />
        <Setter Property="Width"
                Value="10" />
        <Setter Property="Foreground"
                Value="Gray" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Canvas SnapsToDevicePixels="true">
                        <Canvas.RenderTransform>
                            <TranslateTransform X="5"
                                                Y="9" />
                        </Canvas.RenderTransform>
                        <Path x:Name="Background"
                              Fill="{StaticResource HorizontalSliderThumbNormalBackground}"
                              Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" />
                        <Path x:Name="InnerBorder"
                              Stroke="White"
                              StrokeThickness="1"
                              Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}" />
                        <Path x:Name="OuterBorder"
                              Stroke="#FF929292"
                              StrokeThickness="1"
                              Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" />
                    </Canvas>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver"
                                 Value="true">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource HorizontalSliderThumbHoverBackground}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbHoverBorder}" />
                        </Trigger>
                        <Trigger Property="Foreground"
                                 Value="Blue">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource HorizontalSliderThumbHoverBackground}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbHoverBorder}" />
                        </Trigger>
                        <Trigger Property="IsDragging"
                                 Value="true">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource HorizontalSliderThumbPressedBackground}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbPressedBorder}" />
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="false">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="#FFF4F4F4" />
                            <Setter Property="Stroke"
                                    TargetName="InnerBorder"
                                    Value="{x:Null}" />
                            <Setter Property="Data"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource SliderThumbDisabledGeometry}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="#FFAEB1AF" />
                            <Setter Property="Data"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource SliderPointedThumbDisabledGeometry}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="DecreaseRepeatButtonStyle"
           TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle"
                Value="true" />
        <Setter Property="IsTabStop"
                Value="false" />
        <Setter Property="Focusable"
                Value="false" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Grid Height="Auto">
                        <Rectangle RadiusX="0"
                                   RadiusY="0"
                                   Margin="0"
                                   OpacityMask="{x:Null}" Fill="#FF1F1F1F" Height="4"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="SliderRepeatButtonStyle"
           TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle"
                Value="true" />
        <Setter Property="IsTabStop"
                Value="false" />
        <Setter Property="Focusable"
                Value="false" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Rectangle Fill="#FF515151" Height="3" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <LinearGradientBrush x:Key="MediaButtonBorder"
                         EndPoint="0.5,1"
                         StartPoint="0.5,0">
        <GradientStop Color="#FFB8B8B8"
                      Offset="1" />
        <GradientStop Color="#FFDCDCDC"
                      Offset="0" />
        <GradientStop Color="#FF808080"
                      Offset="0.523" />
        <GradientStop Color="#FFFFFFFF"
                      Offset="0.514" />
    </LinearGradientBrush>
    <Style x:Key="HorizontalSliderThumbStyle"
           TargetType="{x:Type Thumb}">
        <Setter Property="Focusable"
                Value="false" />
        <Setter Property="OverridesDefaultStyle"
                Value="true" />
        <Setter Property="Height"
                Value="22" />
        <Setter Property="Width"
                Value="11" />
        <Setter Property="Foreground"
                Value="Gray" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Grid Width="Auto" Height="Auto" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="true">
                		<Grid.RenderTransform>
                			<TransformGroup>
                				<ScaleTransform ScaleX="1"
                					ScaleY="1" />
                				<SkewTransform AngleX="0"
                					AngleY="0" />
                				<RotateTransform Angle="0" />
                				<TranslateTransform X="0"
                					Y="0" />
                			</TransformGroup>
                		</Grid.RenderTransform>
                    	<Ellipse Fill="Black" Stroke="White"/>
                	</Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver"
                                 Value="true" />
                        <Trigger Property="Foreground"
                                 Value="Blue" />
                        <Trigger Property="IsDragging"
                                 Value="true" />
                        <Trigger Property="IsEnabled"
                                 Value="false" />
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <LinearGradientBrush x:Key="VerticalSliderThumbHoverBackground"
                         EndPoint="1,0"
                         StartPoint="0,0">
        <GradientStop Color="white"
                      Offset="0" />
        <GradientStop Color="#B8E2F9"
                      Offset="0.5" />
        <GradientStop Color="#B0DFF8"
                      Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="VerticalSliderThumbPressedBackground"
                         EndPoint="1,0"
                         StartPoint="0,0">
        <GradientStop Color="#B8E4FA"
                      Offset="0.25" />
        <GradientStop Color="#5EB4E3"
                      Offset="0.5" />
        <GradientStop Color="#4C8BB4"
                      Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="VerticalSliderThumbNormalBackground"
                         EndPoint="1,0"
                         StartPoint="0,0">
        <GradientStop Color="White"
                      Offset="0" />
        <GradientStop Color="#F0EFEF"
                      Offset="0.4" />
        <GradientStop Color="#D6D5D5"
                      Offset=".8" />
    </LinearGradientBrush>
    <Style x:Key="VerticalSliderLeftThumbStyle"
           TargetType="{x:Type Thumb}">
        <Setter Property="Focusable"
                Value="false" />
        <Setter Property="OverridesDefaultStyle"
                Value="true" />
        <Setter Property="Height"
                Value="10" />
        <Setter Property="Width"
                Value="18" />
        <Setter Property="Foreground"
                Value="Gray" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Canvas SnapsToDevicePixels="true">
                        <Canvas.RenderTransform>
                            <TransformGroup>
                                <TransformGroup.Children>
                                    <TransformCollection>
                                        <RotateTransform Angle="90" />
                                        <TranslateTransform X="9"
                                                            Y="5" />
                                    </TransformCollection>
                                </TransformGroup.Children>
                            </TransformGroup>
                        </Canvas.RenderTransform>
                        <Path x:Name="Background"
                              Fill="{StaticResource VerticalSliderThumbNormalBackground}"
                              Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" />
                        <Path x:Name="InnerBorder"
                              Stroke="White"
                              StrokeThickness="1"
                              Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}" />
                        <Path x:Name="OuterBorder"
                              Stroke="#FF929292"
                              StrokeThickness="1"
                              Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" />
                    </Canvas>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver"
                                 Value="true">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource VerticalSliderThumbHoverBackground}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbHoverBorder}" />
                        </Trigger>
                        <Trigger Property="Foreground"
                                 Value="Blue">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource VerticalSliderThumbHoverBackground}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbHoverBorder}" />
                        </Trigger>
                        <Trigger Property="IsDragging"
                                 Value="true">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource VerticalSliderThumbPressedBackground}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbPressedBorder}" />
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="false">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="#FFF4F4F4" />
                            <Setter Property="Stroke"
                                    TargetName="InnerBorder"
                                    Value="{x:Null}" />
                            <Setter Property="Data"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource SliderPointedThumbDisabledGeometry}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="#FFAEB1AF" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <LinearGradientBrush x:Key="VerticalSliderThumbHoverBackgroundInverted"
                         EndPoint="0,0"
                         StartPoint="1,0">
        <GradientStop Color="white"
                      Offset="0" />
        <GradientStop Color="#B8E2F9"
                      Offset="0.5" />
        <GradientStop Color="#B0DFF8"
                      Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="VerticalSliderThumbPressedBackgroundInverted"
                         EndPoint="0,0"
                         StartPoint="1,0">
        <GradientStop Color="#B8E4FA"
                      Offset="0.25" />
        <GradientStop Color="#5EB4E3"
                      Offset="0.5" />
        <GradientStop Color="#4C8BB4"
                      Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="VerticalSliderThumbNormalBackgroundInverted"
                         EndPoint="0,0"
                         StartPoint="1,0">
        <GradientStop Color="White"
                      Offset="0" />
        <GradientStop Color="#F0EFEF"
                      Offset="0.4" />
        <GradientStop Color="#D6D5D5"
                      Offset=".8" />
    </LinearGradientBrush>
    <Style x:Key="VerticalSliderRightThumbStyle"
           TargetType="{x:Type Thumb}">
        <Setter Property="Focusable"
                Value="false" />
        <Setter Property="OverridesDefaultStyle"
                Value="true" />
        <Setter Property="Height"
                Value="10" />
        <Setter Property="Width"
                Value="18" />
        <Setter Property="Foreground"
                Value="Gray" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Canvas SnapsToDevicePixels="true">
                        <Canvas.RenderTransform>
                            <TransformGroup>
                                <TransformGroup.Children>
                                    <TransformCollection>
                                        <RotateTransform Angle="-90" />
                                        <TranslateTransform X="9"
                                                            Y="5" />
                                    </TransformCollection>
                                </TransformGroup.Children>
                            </TransformGroup>
                        </Canvas.RenderTransform>
                        <Path x:Name="Background"
                              Fill="{StaticResource VerticalSliderThumbNormalBackgroundInverted}"
                              Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" />
                        <Path x:Name="InnerBorder"
                              Stroke="White"
                              StrokeThickness="1"
                              Data="{StaticResource SliderPointedThumbMiddleBorderGeometry}" />
                        <Path x:Name="OuterBorder"
                              Stroke="#FF929292"
                              StrokeThickness="1"
                              Data="{StaticResource SliderPointedThumbOuterBorderGeometry}" />
                    </Canvas>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver"
                                 Value="true">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource VerticalSliderThumbHoverBackgroundInverted}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbHoverBorder}" />
                        </Trigger>
                        <Trigger Property="Foreground"
                                 Value="Blue">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource VerticalSliderThumbHoverBackgroundInverted}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbHoverBorder}" />
                        </Trigger>
                        <Trigger Property="IsDragging"
                                 Value="true">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource VerticalSliderThumbPressedBackgroundInverted}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbPressedBorder}" />
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="false">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="#FFF4F4F4" />
                            <Setter Property="Stroke"
                                    TargetName="InnerBorder"
                                    Value="{x:Null}" />
                            <Setter Property="Data"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource SliderPointedThumbDisabledGeometry}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="#FFAEB1AF" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <SolidColorBrush x:Key="HorizontalSliderTrackNormalBackground"
                     Color="#FFE7EAEA" />
    <LinearGradientBrush x:Key="VerticalSliderTrackNormalBorder"
                         EndPoint="1,0"
                         StartPoint="0,0">
        <GradientStop Color="#FFAEB1AF"
                      Offset="0.1" />
        <GradientStop Color="White"
                      Offset=".9" />
    </LinearGradientBrush>
    <Geometry x:Key="SliderThumbOuterBorderGeometry">M -5,-9.5 A 1 1 0 0 1 -4,-10.5 L 4,-10.5 A 1 1 0 0 1 5,-9.5 L 5,9.5 A 1 1 0 0 1 4,10.5 L -4,10.5 A 1 1 0 0 1 -5,9.5 Z</Geometry>
    <Geometry x:Key="SliderThumbMiddleBorderGeometry">M -4,-9.5 L 4,-9.5 L 4,9.5 L -4,9.5 Z</Geometry>
    <Style x:Key="VerticalSliderThumbStyle"
           TargetType="{x:Type Thumb}">
        <Setter Property="Focusable"
                Value="false" />
        <Setter Property="OverridesDefaultStyle"
                Value="true" />
        <Setter Property="Height"
                Value="11" />
        <Setter Property="Width"
                Value="22" />
        <Setter Property="Foreground"
                Value="Gray" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Canvas SnapsToDevicePixels="true">
                        <Canvas.RenderTransform>
                            <TransformGroup>
                                <TransformGroup.Children>
                                    <TransformCollection>
                                        <RotateTransform Angle="90" />
                                        <TranslateTransform X="11"
                                                            Y="5.5" />
                                    </TransformCollection>
                                </TransformGroup.Children>
                            </TransformGroup>
                        </Canvas.RenderTransform>
                        <Path x:Name="Background"
                              Fill="{StaticResource VerticalSliderThumbNormalBackground}"
                              Data="{StaticResource SliderThumbOuterBorderGeometry}" />
                        <Path x:Name="InnerBorder"
                              Stroke="White"
                              StrokeThickness="1"
                              Data="{StaticResource SliderThumbMiddleBorderGeometry}" />
                        <Path x:Name="OuterBorder"
                              Stroke="#FF929292"
                              StrokeThickness="1"
                              Data="{StaticResource SliderThumbOuterBorderGeometry}" />
                    </Canvas>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver"
                                 Value="true">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource VerticalSliderThumbHoverBackground}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbHoverBorder}" />
                        </Trigger>
                        <Trigger Property="Foreground"
                                 Value="Blue">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource VerticalSliderThumbHoverBackground}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbHoverBorder}" />
                        </Trigger>
                        <Trigger Property="IsDragging"
                                 Value="true">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="{StaticResource VerticalSliderThumbPressedBackground}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource HorizontalSliderThumbPressedBorder}" />
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="false">
                            <Setter Property="Fill"
                                    TargetName="Background"
                                    Value="#FFF4F4F4" />
                            <Setter Property="Stroke"
                                    TargetName="InnerBorder"
                                    Value="{x:Null}" />
                            <Setter Property="Data"
                                    TargetName="OuterBorder"
                                    Value="{StaticResource SliderThumbDisabledGeometry}" />
                            <Setter Property="Stroke"
                                    TargetName="OuterBorder"
                                    Value="#FFAEB1AF" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="MediaTimeSliderStyle"
           TargetType="{x:Type Slider}">
        <Setter Property="Stylus.IsPressAndHoldEnabled"
                Value="false" />
        <Setter Property="Background"
                Value="Transparent" />
        <Setter Property="Foreground"
                Value="#FFC4C4C4" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Slider}">
                    <Border SnapsToDevicePixels="true"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto"
                                               MinHeight="{TemplateBinding MinHeight}" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <TickBar x:Name="TopTick"
                                     Height="4"
                                     Visibility="Collapsed"
                                     Grid.Row="0"
                                     Fill="{TemplateBinding Foreground}"
                                     Placement="Top" />
                            <TickBar x:Name="BottomTick"
                                     Height="4"
                                     Visibility="Collapsed"
                                     Grid.Row="2"
                                     Fill="{TemplateBinding Foreground}"
                                     Placement="Bottom" />
                            <Border x:Name="TrackBackground"
                                    Margin="5,0"
                                    VerticalAlignment="center"
                                    Height="4.0"
                                    BorderThickness="1"
                                    CornerRadius="1"
                                    Grid.Row="1"
                                    BorderBrush="{x:Null}" Background="{x:Null}">
                                <Canvas Margin="-6,-1">
                                    <Rectangle x:Name="PART_SelectionRange"
                                               Fill="{x:Null}"
                                               Stroke="{x:Null}"
                                               StrokeThickness="1.0"
                                               Height="4.0"
                                               Visibility="Hidden" />
                                </Canvas>
                            </Border>
                            <Track x:Name="PART_Track"
                                   Grid.Row="1">
                                <Track.IncreaseRepeatButton>
                                    <RepeatButton Style="{StaticResource SliderRepeatButtonStyle}"
                                                  Command="{x:Static Slider.IncreaseLarge}" />
                                </Track.IncreaseRepeatButton>
                                <Track.DecreaseRepeatButton>
                                    <RepeatButton Style="{DynamicResource DecreaseRepeatButtonStyle}"
                                                  Command="{x:Static Slider.DecreaseLarge}" />
                                </Track.DecreaseRepeatButton>
                                <Track.Thumb>
                                    <Thumb x:Name="Thumb"
                                           Style="{StaticResource HorizontalSliderThumbStyle}"
                                           Width="10"
                                           Height="10" />
                                </Track.Thumb>
                            </Track>
                        </Grid>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="TickPlacement"
                                 Value="TopLeft">
                            <Setter Property="Visibility"
                                    TargetName="TopTick"
                                    Value="Visible" />
                            <Setter Property="Style"
                                    TargetName="Thumb"
                                    Value="{StaticResource HorizontalSliderUpThumbStyle}" />
                            <Setter Property="Margin"
                                    TargetName="TrackBackground"
                                    Value="5,2,5,0" />
                        </Trigger>
                        <Trigger Property="TickPlacement"
                                 Value="BottomRight">
                            <Setter Property="Visibility"
                                    TargetName="BottomTick"
                                    Value="Visible" />
                            <Setter Property="Style"
                                    TargetName="Thumb"
                                    Value="{StaticResource HorizontalSliderDownThumbStyle}" />
                            <Setter Property="Margin"
                                    TargetName="TrackBackground"
                                    Value="5,0,5,2" />
                        </Trigger>
                        <Trigger Property="TickPlacement"
                                 Value="Both">
                            <Setter Property="Visibility"
                                    TargetName="TopTick"
                                    Value="Visible" />
                            <Setter Property="Visibility"
                                    TargetName="BottomTick"
                                    Value="Visible" />
                        </Trigger>
                        <Trigger Property="IsSelectionRangeEnabled"
                                 Value="true">
                            <Setter Property="Visibility"
                                    TargetName="PART_SelectionRange"
                                    Value="Visible" />
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused"
                                 Value="true">
                            <Setter Property="Foreground"
                                    TargetName="Thumb"
                                    Value="Blue" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="Orientation"
                     Value="Vertical">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Slider}">
                            <Border SnapsToDevicePixels="true"
                                    Background="{TemplateBinding Background}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}">
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition MinWidth="{TemplateBinding MinWidth}"
                                                          Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <TickBar x:Name="TopTick"
                                             Width="4"
                                             Visibility="Collapsed"
                                             Grid.Column="0"
                                             Fill="{TemplateBinding Foreground}"
                                             Placement="Left" />
                                    <TickBar x:Name="BottomTick"
                                             Width="4"
                                             Visibility="Collapsed"
                                             Grid.Column="2"
                                             Fill="{TemplateBinding Foreground}"
                                             Placement="Right" />
                                    <Border x:Name="TrackBackground"
                                            HorizontalAlignment="center"
                                            Margin="0,5"
                                            Width="4.0"
                                            Background="{StaticResource HorizontalSliderTrackNormalBackground}"
                                            BorderBrush="{StaticResource VerticalSliderTrackNormalBorder}"
                                            BorderThickness="1"
                                            CornerRadius="1"
                                            Grid.Column="1">
                                        <Canvas Margin="-1,-6">
                                            <Rectangle x:Name="PART_SelectionRange"
                                                       Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"
                                                       Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}"
                                                       StrokeThickness="1.0"
                                                       Width="4.0"
                                                       Visibility="Hidden" />
                                        </Canvas>
                                    </Border>
                                    <Track x:Name="PART_Track"
                                           Grid.Column="1">
                                        <Track.Thumb>
                                            <Thumb x:Name="Thumb"
                                                   Style="{StaticResource VerticalSliderThumbStyle}" />
                                        </Track.Thumb>
                                        <Track.IncreaseRepeatButton>
                                            <RepeatButton Style="{StaticResource SliderRepeatButtonStyle}"
                                                          Command="{x:Static Slider.IncreaseLarge}" />
                                        </Track.IncreaseRepeatButton>
                                        <Track.DecreaseRepeatButton>
                                            <RepeatButton Style="{StaticResource SliderRepeatButtonStyle}"
                                                          Command="{x:Static Slider.DecreaseLarge}" />
                                        </Track.DecreaseRepeatButton>
                                    </Track>
                                </Grid>
                            </Border>
                            <ControlTemplate.Triggers>
                                <Trigger Property="TickPlacement"
                                         Value="TopLeft">
                                    <Setter Property="Visibility"
                                            TargetName="TopTick"
                                            Value="Visible" />
                                    <Setter Property="Style"
                                            TargetName="Thumb"
                                            Value="{StaticResource VerticalSliderLeftThumbStyle}" />
                                    <Setter Property="Margin"
                                            TargetName="TrackBackground"
                                            Value="2,5,0,5" />
                                </Trigger>
                                <Trigger Property="TickPlacement"
                                         Value="BottomRight">
                                    <Setter Property="Visibility"
                                            TargetName="BottomTick"
                                            Value="Visible" />
                                    <Setter Property="Style"
                                            TargetName="Thumb"
                                            Value="{StaticResource VerticalSliderRightThumbStyle}" />
                                    <Setter Property="Margin"
                                            TargetName="TrackBackground"
                                            Value="0,5,2,5" />
                                </Trigger>
                                <Trigger Property="TickPlacement"
                                         Value="Both">
                                    <Setter Property="Visibility"
                                            TargetName="TopTick"
                                            Value="Visible" />
                                    <Setter Property="Visibility"
                                            TargetName="BottomTick"
                                            Value="Visible" />
                                </Trigger>
                                <Trigger Property="IsSelectionRangeEnabled"
                                         Value="true">
                                    <Setter Property="Visibility"
                                            TargetName="PART_SelectionRange"
                                            Value="Visible" />
                                </Trigger>
                                <Trigger Property="IsKeyboardFocused"
                                         Value="true">
                                    <Setter Property="Foreground"
                                            TargetName="Thumb"
                                            Value="Blue" />
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
	<Style x:Key="ButtonFocusVisual">
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate>
					<Rectangle Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="2" SnapsToDevicePixels="true"/>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
		<GradientStop Color="#F3F3F3" Offset="0"/>
		<GradientStop Color="#EBEBEB" Offset="0.5"/>
		<GradientStop Color="#DDDDDD" Offset="0.5"/>
		<GradientStop Color="#CDCDCD" Offset="1"/>
	</LinearGradientBrush>
	<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
	<Style x:Key="BlankButton" TargetType="{x:Type Button}">
		<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
		<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
		<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
		<Setter Property="HorizontalContentAlignment" Value="Center"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Padding" Value="1"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Grid>
						<Rectangle Stroke="{x:Null}" Fill="#00000000" RadiusX="4" RadiusY="4" Opacity="1"/>
						<Border HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" BorderBrush="{x:Null}" BorderThickness="1" CornerRadius="4" IsHitTestVisible="True">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True"/>
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsKeyboardFocused" Value="true"/>
						<Trigger Property="ToggleButton.IsChecked" Value="true"/>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="#ADADAD"/>
						</Trigger>
						<Trigger Property="IsPressed" Value="True"/>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="InfoButton" TargetType="{x:Type Button}">
		<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
		<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
		<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
		<Setter Property="HorizontalContentAlignment" Value="Center"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Padding" Value="1"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Grid x:Name="grid">
						<Rectangle Stroke="{x:Null}" Fill="#00000000" RadiusX="4" RadiusY="4" Opacity="1"/>
						<Grid Margin="0">
							<Grid Width="25" Height="25" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center">
								<Ellipse x:Name="ellipse" Stroke="#B2FFFFFF" StrokeThickness="2.5"/>
								<TextBlock Margin="0,-3,0,0" Text="i" TextWrapping="Wrap" d:LayoutOverrides="Width, Height" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"/>
							</Grid>
							<Border HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" BorderBrush="{x:Null}" BorderThickness="1" CornerRadius="4" IsHitTestVisible="True">
								<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True"/>
							</Border>
						</Grid>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter Property="Stroke" TargetName="ellipse" Value="White"/>
							<Setter Property="Background" TargetName="grid" Value="#00000000"/>
						</Trigger>
						<Trigger Property="IsKeyboardFocused" Value="true"/>
						<Trigger Property="ToggleButton.IsChecked" Value="true"/>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="#ADADAD"/>
						</Trigger>
						<Trigger Property="IsPressed" Value="True"/>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>
